<!-- #header -->
<div id="header" class="clearfix">
	<!-- .container -->
	<div class="container">
		<?php echo $this->Html->link($this->Html->image('logo.png', array('border' => 0, 'alt' => 'Adams campus - Anyone can teach, Anyone can learn.', 'width' => '257', 'height' => '49')), '/', array('class' => 'logo', 'escape' => false));?>
		<div class="clearfix">
			<ul class="social">
				<li><div class="fb-like" data-href="http://www.adamscampus.com/" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false"></div></li>
				<li class="last"><a href="https://twitter.com/share" class="twitter-share-button" data-lang="ja" data-count="none">ツイート</a></li>
			</ul>
			<ul class="nav">
				<li><?php echo $this->Html->link('Adams Campusとは', array('controller' => 'pages', 'action' => 'display', 'concept'));?></li>
				<li><?php echo $this->Html->link('サイトの使い方', array('controller' => 'pages', 'action' => 'display', 'faq'));?></li>
				<li><?php echo $this->Html->link('お問い合わせ', array('controller' => 'pages', 'action' => 'contact'));?></li>
			</ul>
		</div>
		<div class="clearfix">
			<?php if ($userLogon):?>
			<ul class="userNav">
				<li><a class="avatar" href="<?php echo $this->Html->url(array('controller' => 'users', 'action' => 'mypage'));?>">
						<?php if($this->Session->read('User.icon_image') && $this->Session->read('User.icon_image')!=''): ?>
						<?php echo $this->Html->image(Configure::read('User.upload_path_prefix').$this->Session->read('User.icon_image'), array('alt' => $this->Session->read("User.name"), 'border' => '0')); ?>
						<?php else:?>
						<?php echo $this->Html->image(Configure::read('User.default_icon_image'), array('alt' => $this->Session->read("User.name"), 'border' => '0', 'class'=>'avatar'));?>
						<?php endif; ?></a>
				</li>
				<li class="last"><a href="#" class="username"><?php echo $this->Session->read('User.name'); ?>&nbsp;</a>
					<div id="popNav">
						<?php echo $this->Html->image('popArrow.png', array('id' => 'arrow'));?>
						<ul>
							<li><?php echo $this->Html->link('マイページ', array('controller' => 'users', 'action' => 'mypage'));?></li>
							<li><?php echo $this->Html->link('プロフィール編集', array('controller' => 'users', 'action' => 'profile'));?></li>
							<li><?php echo $this->Html->link('ログアウト', array('controller' => 'users', 'action' => 'logout'));?></li>
						</ul>
					</div>
				</li>
			</ul>
			<?php else:?>
			<ul class="register">
				<li><?php echo $this->Html->link($this->Html->image('entry_off.gif', array('border' => 0, 'alt' => '新規登録', 'width' => '105', 'height' => '29')), array('controller' => 'users', 'action' => 'signup'), array('escape' => false));?> </li>
				<li class="last"><?php echo $this->Html->link($this->Html->image('login_off.gif', array('border' => 0, 'alt' => 'ログイン', 'width' => '105', 'height' => '29')), array('controller' => 'users', 'action' => 'signin'), array('escape' => false));?>  </li>
			</ul>
			<?php endif;?>
			<ul class="courseNav">
				<li><?php echo $this->Html->link($this->Html->image('class_search_off.gif', array('border' => '0', 'alt' => 'クラスを探す', 'width' => '140', 'height' => '41')), array('controller' => 'course', 'action' => 'index'), array('escape' => false));?></li>
				<li class="last"><?php echo $this->Html->link($this->Html->image('class_make_off.gif', array('border' => 0, 'alt' => 'クラスを作る', 'width' => '140', 'height' => '41')), array('controller' => 'course', 'action' => 'add'), array('escape' => false));?></li>
			</ul>
		</div>
		<?php if (($this->Session->check('User.courses') && $this->Session->read('User.courses'))
			|| ($this->Session->check('User.pass_courses') && $this->Session->read('User.pass_courses'))
			|| $this->Session->check('Message.schedule')
			|| $this->Session->check('Message.success')
			|| $this->Session->check('Message.error')):?>
		<div class="section userStatus">
			<?php if ($this->Session->check('User.courses') && $this->Session->read('User.courses')):?>
			<p class="pending" id="jsCoursePending"><?php echo $this->element('course_pending');?></p>
			<?php endif;?>
			<?php if ($scheduleMsg = $this->Session->flash('schedule')):?>
			<p class="addSchedule"><?php echo $scheduleMsg;?></p>
			<?php endif;?>
			<?php if ($successMsg = $this->Session->flash('success')):?>
			<p class="success"><?php echo $successMsg;?></p>
			<?php endif;?>
			<?php if($this->Session->check('User.pass_courses')):?>
				<?php foreach ($this->Session->read('User.pass_courses') as $c):?>
				<p class="askReview" id="askReview<?php echo $c['Course']['id'];?>">クラスの授業はいかがでしたか？よろしければ
					<?php echo $this->Html->link('here', array('controller' => 'course', 'action' => 'view', $c['Course']['id']));?>の感想を投稿してください！</p>
				<?php endforeach;?>
			<?php endif;?>
			<?php if ($errorMsg = $this->Session->flash('error')):?>
				<p class="error"><?php echo $errorMsg;?></p>
			<?php endif;?>
		</div>
		<?php endif;?>
		<?php if (!isset ($hideBanner) || !$hideBanner):?>
		<div class="section">
			<div class="slider-wrapper theme-default">
				<div id="slider" class="nivoSlider">
					<?php echo $this->Html->image('billboard_01.jpg', array('border' => '0', 'alt' => 'Adams campus', 'width' => '980', 'height' => '340'));?>
					<?php echo $this->Html->image('billboard_02.jpg', array('border' => '0', 'alt' => 'Adams campusとは？', 'width' => '980', 'height' => '340'));?>
					<?php echo $this->Html->image('billboard_03.jpg', array('border' => '0', 'alt' => '必要なのは、好奇心と友情だけ。', 'width' => '980', 'height' => '340'));?>
					<?php echo $this->Html->image('billboard_04.jpg', array('border' => '0', 'alt' => 'Anyone can teach, Anyone can learn', 'width' => '980', 'height' => '340'));?>
					<?php echo $this->Html->image('billboard_05.jpg', array('border' => '0', 'alt' => '挑戦する好奇心、成長する情熱を、繋ぐ場所', 'width' => '980', 'height' => '340'));?>
				</div>
			</div>
		</div>
		<?php endif;?>
	</div>
	<!-- /.container -->
</div>
<!-- /#header -->